//
//  NSString+Multiple.m
//  多View选择器
//
//  Created by LK-IOS on 2018/1/4.
//  Copyright © 2018年 LK-IOS. All rights reserved.
//

#import "NSString+Multiple.h"

@implementation NSString (Multiple)

- (CGSize)pz_sizeWithfont:(UIFont *)font maxSize:(CGSize)maxSize
{
    NSDictionary *attrs = @{NSFontAttributeName : font};
    return [self boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:attrs context:nil].size;
}

- (CGSize)pz_sizeWithAttrs:(NSDictionary *)attrs maxSize:(CGSize)maxSize
{
    return [self boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:attrs context:nil].size;
}


@end
